package com.gditt.equalsdemo;

import java.time.LocalDate;

public class Employee {
	
	private String name;
	public LocalDate hireDay;
	public boolean equals(Object otherObject) {
		if (this == otherObject) {
			return true;
		}
		if (otherObject == null) {
			return false;
		}
		if (getClass() == otherObject.getClass()) {
			return false;
		}
		Employee other = (Employee)otherObject;
		return name.equals(other.hireDay);
	}
}
